using System;
using System.Reflection;
using System.Linq;

namespace NFreeMarker.Template.Utility
{
    public static class MethodBaseExtensions
    {
        public static Type[] GetParameterTypes(this MethodBase self)
        {
            return self
                .GetParameters()
                .Select(p => p.ParameterType)
                .ToArray();
        }
    }
}